from time import sleep

from basic.basedriver import DRIVER
from basic.basepage import BasePage

class PageShoppingCart(BasePage):
    def add_product_cart(self):
        self.click_by_text("加入购物车")
        self.click_by_text("确定")
        sleep(1)
        return self
    def buy_now(self):
        pass
    def product_collection(self):
        pass
    def shopping_cart(self):
        self.click_by_text("购物车")
        return DRIVER.current_activity
# if __name__ == '__main__':
#     from page.page_main import PageMain
#     obj = PageMain()
#     result = obj.goto_classification.buy_to_new_xiaomi_phone_Xiaomi_15S_Pro.add_product_cart.add_product_cart
#     print(result)